package com.example.week3.adapter;

import android.util.Log;

import androidx.annotation.Nullable;
import androidx.lifecycle.Lifecycle;
import androidx.recyclerview.widget.RecyclerView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.example.week3.R;
import com.example.week3.bean.UserBean;

import java.util.List;

public class TravelAdapter extends BaseQuickAdapter<List<UserBean>, BaseViewHolder> {
    List<List<UserBean>> list;

    public TravelAdapter(int layoutResId, @Nullable List<List<UserBean>> data) {
        super(layoutResId, data);

        list = data;
    }

    @Override
    protected void convert(BaseViewHolder helper, List<UserBean> item) {
        for (int i = 0; i < list.size(); i++) {
            helper.setText(R.id.tv,item.get(i).getTag_name());
        }

    }


}
